package com.tudouji.project.flow.controller;

import com.tudouji.framework.web.controller.BaseController;
import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.project.flow.service.IShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/share")
public class ShareController extends BaseController {

    @Autowired
    private IShareService shareService;

    @RequestMapping("/{id}")
    public AjaxResult share(@PathVariable Long id, Long flowId, String userIds){
        return shareService.share(id,flowId,userIds);
    }
}
